/*
 * Copyright © 2023-2025 puyinzhen
 * All rights reserved.
 *
 * The copyright of this work (or idea/project/document) is owned by puyinzhen. Without explicit written permission, no part of this work may be reproduced, distributed, or modified in any form for commercial purposes.
 *
 * This copyright statement applies to, but is not limited to: concept descriptions, design documents, source code, images, presentation files, and any related content.
 *
 * For permission to use this work or any part of it, please contact 1182810784@qq.com to obtain written authorization.
 */
// ControlGroup.less
.control-group {
  width: 100%;
  margin-bottom: 16px;
  background-color: #2C2C3E;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A3A4E;
  overflow: hidden;
  transition: all 0.2s ease;

  .control-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;

    &:hover {
      background-color: rgba(79, 184, 255, 0.05);
      color: #4FB8FF;

      .cgh-operate .operate-icon {
        color: #4FB8FF;
      }
    }

    .cgh-label {
      flex: 1;
      font-size: 16px;
      font-weight: 500;
    }

    .cgh-operate {
      display: flex;
      align-items: center;
      gap: 12px;

      .operate-icon {
        color: #A0A0B2;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;

        &:hover {
          background-color: rgba(79, 184, 255, 0.1);
          color: #4FB8FF;
        }

        &.del-icon:hover {
          color: #FF6E6E;
          background-color: rgba(255, 110, 110, 0.1);
        }
      }
    }
  }

  .control-group-body {
    padding: 16px;
    background-color: #3A3A4E;
    border-top: 1px solid #3A3A4E;

    .lc-accordion {
      margin-bottom: 12px;

      &:last-child {
        margin-bottom: 0;
      }

      .accordion-header {
        color: #A0A0B2;
        font-size: 14px;
      }
    }
  }
}